import { IRouterConfig } from 'ice';
import Login from '@/pages/Login';
import SignIn from '@/pages/SignIn';
import ForgetCode from '@/pages/ForgetCode';
import BasicLayout from '@/layouts/BasicLayout';
import Home from '@/pages/Home';
import Create from '@/pages/Create';
import Instruction from '@/pages/Instruction';

const routerConfig: IRouterConfig[] = [
  {
    path: '/',
    component: BasicLayout,
    children: [
      {
        path: '/login',
        exact: true,
        component: Login,
      },
      {
        path: '/signIn',
        exact: true,
        component: SignIn,
      },
      {
        path: '/forgetCode',
        exact: true,
        component: ForgetCode,
      },
      {
        path: '/home',
        exact: true,
        component: Home,
      },
      {
        path: '/create',
        exact: true,
        component: Create,
      },
      {
        path: '/instruction',
        exact: true,
        component: Instruction,
      },
      {
        path: '/',
        redirect: '/home',
      },
    ],
  },
];
export default routerConfig;
